﻿using MediatR;
using RBAC.LuFang.API.Application.Command.deepprocessingCommand;
using RBAC.LuFang.Domain.Traceability;
using RBAC.LuFang.Domin.Services.TraceabilityService;

namespace RBAC.LuFang.API.Application.CommandHandlers.deepprocessingCommandHandler
{
    //显示相关材料
    public class GetXiangpicCommandHandler:IRequestHandler<GetXiangpicCommand,List<imges>>
    {
        private readonly IdeepprocessingService _depService;

        public GetXiangpicCommandHandler(IdeepprocessingService depService)
        {
            _depService = depService;
        }

        public async Task<List<imges>> Handle(GetXiangpicCommand request, CancellationToken cancellationToken)
        {
            return await _depService.GetXiangpic(request.imgtype, request.goodsid);
        }
    }
}
